Arrangements for magnetic field sensors that act as tooth detectors

ABSTRACT

A variety of magnetic field sensor arrangements provide so-called “tooth detectors” using a simple low-cost magnet.

CROSS REFERENCE TO RELATED APPLICATIONS

Not Applicable.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH

Not Applicable.

FIELD

This invention relates generally to magnetic field sensors, and, more particularly, to magnetic field sensors having a magnet and a substrate with magnetic field sensing elements thereupon, all arranged in a variety of relative positions.

BACKGROUND

Various types of magnetic field sensing elements are known, including Hall Effect elements and magnetoresistance elements. Magnetic field sensors generally include a magnetic field sensing element and other electronic components. Some magnetic field sensors also include a permanent magnet in a so-called “back biased” arrangement described more fully below.

Magnetic field sensors provide an electrical signal representative of a sensed magnetic field. In some embodiments that have the magnet, the sensed magnetic field is a magnetic field generated by the magnet, in which case, in the presence of a moving ferromagnetic object, the magnetic field generated by the magnet and sensed by the magnetic field sensor varies in accordance with a shape or profile of the moving ferromagnetic object.

Magnetic field sensors are often used to detect movement of features of a ferromagnetic gear, such as gear teeth and/or gear slots or valleys. A magnetic field sensor in this application is commonly referred to as a “gear tooth” sensor.

In some arrangements, the gear is placed upon a target object, for example, a camshaft in an engine. Thus, it is the rotation of the target object (e.g., camshaft) that is sensed by detection of the moving features of the gear. Gear tooth sensors are used, for example, in automotive applications to provide information to an engine control processor for ignition timing control, fuel management, anti-lock braking systems, wheel speed sensors, and other operations.

Information provided by the gear tooth sensor to the engine control processor can include, but is not limited to, an absolute angle of rotation of a target object (e.g., a camshaft) as it rotates, a speed of the rotation, and a direction of the rotation. With this information, the engine control processor can adjust the timing of firing of the ignition system and the timing of fuel injection by the fuel injection system.

Many types of magnetic field sensors do not provide an accurate output signal (e.g., indication of absolute angle, speed, or direction of rotation) immediately upon power up, upon movement of the target object from zero rotating speed, and/or upon movement slowing to zero rotating speed, but instead provide an accurate output signal only once the target object has moved through a substantial rotation or is moving with substantial speed. For example, in one type of magnetic field sensor described in U.S. Pat. No. 6,525,531, entitled “Detection of Passing Magnetic Articles while Adapting the Detection Threshold,” issued Feb. 25, 2003, a positive digital-to-analog converter (PDAC) and a negative digital-to-analog converter (NDAC) track positive and negative peaks of a magnetic field signal, respectively, for use in generating a threshold signal. A varying magnetic field signal is compared to the threshold signal. However, the outputs of the PDAC and the NDAC may not be accurate indications of the positive and negative peaks of the magnetic field signal until several cycles of the signal (i.e., signal peaks) occur (i.e., until several gear teeth have passed). This type of magnetic field sensor, which generally requires time to become fully accurate, is referred to herein as a so-called “precision rotation detector.”

In contrast, a “true power on state” (TPOS) detector can provide an accurate output signal shortly after movement of a target object (e.g., camshaft) from zero rotating speed, or a low rotation speed in some applications of for example less than 100 rpm, or also shortly before movement slowing to zero rotating speed. Furthermore, even when the target object is not moving, the TPOS detector can provide an indication of whether the TPOS detector is in front of a tooth or a valley of a gear. However, when the target object is stationary, the conventional TPOS detector is not able to identify an absolute or relative angle of rotation of the target object. The TPOS detector can be used in conjunction with a precision rotation detector within a common integrated circuit, each providing information to the engine control processor at different times. For simplicity, TPOS detectors and precision rotation detectors are shown herein within a common integrated circuit. However, the TPOS detector or the precision rotation detector can also be used alone in separate circuits.

As described above, the conventional TPOS detector provides an accurate output signal with only a small initial rotation of the target object, and before the precision rotation detector can provide an accurate output signal. The TPOS detector can provide information to the engine control processor that can be more accurate than information provided by the precision rotation detector for time periods at the beginning and at the end of rotation of the target object (e.g., start and stop of the engine and camshaft), but which may be less accurate when the object is rotating at speed. For magnetic field sensor arrangements that have both a TPOS detector and a precision rotation detector within a common integrated circuit, when the object is rotating at speed, the engine control processor can primarily use rotation information provided by the precision rotation detector. In most conventional applications, once the magnetic field sensor switches to use the precision rotation detector, it does not return to use the TPOS detector until the target object stops rotating or nearly stops rotating.

A conventional TPOS detector is described in U.S. Pat. No. 7,362,094, entitled “Method and Apparatus for Magnetic Article Detection,” issued Apr. 22, 2008. The conventional TPOS detector includes a comparator for comparing the magnetic field signal to a fixed, often trimmed, threshold signal. The conventional TPOS detector can be used in conjunction with and can detect rotational information about a TPOS cam (like a gear), which is disposed upon a target object, e.g., an engine camshaft, configured to rotate.

An exemplary output signal from a conventional TPOS detector has at least two states, and typically a high and a low state. The state of the conventional TPOS output signal is high at some times and low at other times as the target object rotates, in accordance with features on the TPOS cam (or gear) attached to the target object.

Similarly, an output signal from a conventional precision rotation detector also has at least two states, and typically a high and a low state. The state of the conventional precision rotation detector output signal is high at some times and low at other times as the target object rotates, also in accordance with features on the TPOS cam (or gear) attached to the target object

As described above, conventional TPOS detectors have the ability to differentiate a gear tooth from a gear valley, and to make such detection when the gear is rotating and when the gear is not rotating. In contrast, some conventional precision rotation detectors have the ability to differentiate a gear tooth from a gear valley when the gear is rotating, but not when the gear is stationary. Detectors that can identify a gear tooth from a valley are sometimes referred to as “tooth detectors.” Thus, TPOS detectors are usually tooth detectors. Some precision rotation detectors can also be tooth detectors.

Some other conventional precision rotation detectors are unable to differentiate a gear tooth from a valley, but instead, can differentiate an edge of a tooth of the gear from the tooth or the valley. Such detectors are sometimes referred to as “edge detectors.” Usually, TPOS detectors are not edge detectors. However, some precision rotation detectors can be edge detectors.

The conventional magnetic field sensor must achieve an accurate output signal that accurately differentiates between gear teeth and gear valleys even in the presence of an air gap between the magnetic field sensor and the gear that may change from installation to installation or from time to time. Still further, the conventional magnetic field sensor must achieve these differentiations even in the presence of unit-to-unit variations in relative positions of the magnet and the magnetic field sensing element within the magnetic field sensor. Still further, the conventional magnetic field sensor must achieve these differentiations even in the presence of unit-to-unit variations in the magnetic field generated by the magnet. Still further, the conventional magnetic field sensor must achieve these differentiations even in the presence of variations of an axial rotation of the magnetic field sensor relative to the gear. Still further, the conventional magnetic field sensor must achieve these differentiations even in the presence of variations of temperature around the magnetic field sensor.

The above effects result in expensive design choices. In particular, some of the above effects result it use of an expensive magnet described below in conjunction with FIGS. 1 and 2.

It would be desirable to provide a magnetic field sensor in a magnetically biased arrangement that can achieve an accurate output signal that accurately differentiates between gear teeth and gear valleys while using a simpler and less expensive magnet.

SUMMARY

A magnetic field sensor in a magnetically biased arrangement achieves an accurate output signal that accurately differentiates between gear teeth and gear valleys while using a simpler and less expensive magnet. The differentiation is achieved even in the presence of variations of mechanical and thermal parameters associated with the magnetic field sensor.

In accordance with one aspect, a magnetic field sensor for sensing motion of a ferromagnetic object comprises a substrate. The substrate includes a first major surface, wherein a first dimension across the first major surface of the substrate defines a width of the substrate and a second dimension across the first major surface of the substrate perpendicular to the first dimension defines a length of the substrate. The substrate also includes first and second substrate edges at ends of the width of the substrate. The substrate also includes a second major surface parallel to the first major surface. The magnetic field sensor further comprises a magnet. The magnet includes a first major surface proximate to the substrate, wherein a first dimension across the first major surface of the magnet defines a width of the magnet and a second dimension across the first major surface of the magnet perpendicular to the first dimension defines a length of the magnet. The magnet also includes a second major surface distal from the substrate and parallel to the first major surface of the magnet. The magnet also includes a center axis perpendicular to the first and second major surfaces of the magnet and centered within the width and length of the magnet. The magnetic field sensor further comprises a first magnetic field sensing element disposed upon the first major surface or the second major surface of the substrate and configured to generate a magnetic field signal, wherein the first magnetic field sensing element comprises a center; wherein the center of the first magnetic field sensing element is substantially closer to a first end of the width dimension of the magnet than to the center axis of the magnet.

In accordance with another aspect, a magnetic field sensor for sensing motion of a ferromagnetic object comprises a substrate. The substrate includes a first major surface, wherein a first dimension across the first major surface of the substrate defines a width of the substrate and a second dimension across the first major surface of the substrate perpendicular to the first dimension defines a length of the substrate. The substrate also includes first and second substrate edges at ends of the width of the substrate. The substrate also includes a second major surface parallel to the first major surface. The magnetic field sensor further comprises a magnet. The magnet includes a first major surface proximate to the substrate, wherein a first dimension across the first major surface of the magnet defines a width of the magnet and a second dimension across the first major surface of the magnet perpendicular to the first dimension defines a length of the magnet. The magnet also includes a second major surface distal from the substrate and parallel to the first major surface of the magnet. The magnet also includes a center axis perpendicular to the first and second major surfaces of the magnet and centered within the width and length of the magnet. The magnetic field sensor further comprises a first magnetic field sensing element disposed upon the first major surface or the second major surface of the substrate and configured to generate a first magnetic field signal. The magnetic field sensor also includes a second magnetic field sensing element disposed upon the first major surface or the second major surface of the substrate and configured to generate a second magnetic field wherein a line passing through the first and second magnetic field sensing elements intersects the ferromagnetic object.

BRIEF DESCRIPTION OF THE DRAWINGS

The foregoing features of the invention, as well as the invention itself may be more fully understood from the following detailed description of the drawings, in which:

FIG. 1 is a block diagram of a conventional magnetic field sensor having a magnetic field sensing element, an electronic circuit, and a magnet;

FIG. 1A is a block diagram of an exemplary electronic circuit that can be used as the electronic circuit of FIG. 1;

FIG. 2 is another block diagram of the magnetic field sensor of FIG. 1;

FIG. 3 is a block diagram of a magnetic field sensor having a magnetic field sensing element, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 3A is a block diagram of another magnetic field sensor having a magnetic field sensing element, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 3B is a block diagram of another magnetic field sensor having a magnetic field sensing element, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 3C is a block diagram of the magnetic field sensor of FIG. 3 having a magnetic field sensing element, an electronic circuit, and a magnet, all within an encapsulation, the magnetic field sensor located proximate to a gear;

FIG. 3D is a block diagram showing a plurality of magnetic field sensing elements disposed upon a substrate, a selected one of which can be used in any of the magnetic field sensors herein;

FIG. 4 is a block diagram of another magnetic field sensor having two magnetic field sensor, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 4A is a block diagram of another magnetic field sensor having two magnetic field sensing elements, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 4B is a block diagram of another magnetic field sensor having two magnetic field sensing elements, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 4C is a block diagram of another magnetic field sensor having a magnetic field sensing element, an electronic circuit, and a magnet, the magnetic field sensor located proximate to a gear;

FIG. 4D is a block diagram of the magnetic field sensor of FIG. 4 having two magnetic field sensing elements, an electronic circuit, and a magnet, all within an encapsulation, the magnetic field sensor located proximate to a gear; and

FIG. 5 is a block diagram of an exemplary electronic circuit that can be used as the electronic circuit in the magnetic field sensors of FIGS. 4, 4A, 4B, and 4D; and

FIG. 6 is a graph showing exemplary magnetic fields proximate to a magnetic field sensing element.

DETAILED DESCRIPTION

Before describing the present invention, some introductory concepts and terminology are explained.

As used herein, the term “magnetic field sensing element” is used to describe a variety of electronic elements that can sense a magnetic field. The magnetic field sensing element can be, but is not limited to, a Hall Effect element, a magnetoresistance element, or a magnetotransistor. As is known, there are different types of Hall Effect elements, for example, a planar Hall element, a vertical Hall element, and a Circular Vertical Hall (CVH) element. As is also known, there are different types of magnetoresistance elements, for example, a semiconductor magnetoresistance element such as Indium Antimonide (InSb), a giant magnetoresistance (GMR) element, an anisotropic magnetoresistance element (AMR), a tunneling magnetoresistance (TMR) element, and a magnetic tunnel junction (MTJ). The magnetic field sensing element may be a single element or, alternatively, may include two or more magnetic field sensing elements arranged in various configurations, e.g., a half bridge or full (Wheatstone) bridge. Depending on the device type and other application requirements, the magnetic field sensing element may be a device made of a type IV semiconductor material such as Silicon (Si) or Germanium (Ge), or a compound semiconductor material like Gallium-Arsenide (GaAs) or an Indium compound, e.g., Indium-Antimonide (InSb), or InGaA.

As is known, some of the above-described magnetic field sensing elements tend to have an axis of maximum sensitivity parallel to a substrate that supports the magnetic field sensing element, and others of the above-described magnetic field sensing elements tend to have an axis of maximum sensitivity perpendicular to a substrate that supports the magnetic field sensing element. In particular, planar Hall elements tend to have axes of sensitivity perpendicular to a substrate, while metal based or metallic magnetoresistance elements (e.g., GMR, TMR, AMR) and vertical Hall elements tend to have axes of sensitivity parallel to a substrate.

As used herein, the term “magnetic field sensor” is used to describe a circuit that uses a magnetic field sensing element, generally in combination with other circuits. Magnetic field sensors are used in a variety of applications, including, but not limited to, an angle sensor that senses an angle of a direction of a magnetic field, a current sensor that senses a magnetic field generated by a current carried by a current-carrying conductor, a magnetic switch that senses the proximity of a ferromagnetic object, a rotation detector that senses passing ferromagnetic articles, for example, magnetic domains of a ring magnet, and a magnetic field sensor that senses a magnetic field density of a magnetic field.

As used herein, the term “accuracy,” when referring to a magnetic field sensor, is used to refer to a variety of aspects of the magnetic field sensor. These aspects include, but are not limited to, an ability of the magnetic field sensor to differentiate: a gear tooth from a gear valley (or, more generally, the presence of a ferromagnetic object from the absence of a ferromagnetic object) when the gear is not rotating and/or when the gear is rotating (or, more generally, when a ferromagnetic object is moving or not moving), an ability to differentiate an edge of a tooth of the gear from the tooth or the valley of the gear (or, more generally, the edge of a ferromagnetic object or a change in magnetization direction of a hard ferromagnetic object), and a rotational accuracy with which the edge of the gear tooth is identified (or, more generally, the positional accuracy with which an edge of a ferromagnetic object can be identified). Ultimately, accuracy refers to output signal edge placement accuracy and consistency with respect to gear tooth edges passing by the magnetic field sensor.

The terms “parallel” and “perpendicular” are used in various contexts herein. It should be understood that the terms parallel and perpendicular do not require exact perpendicularity or exact parallelism, but instead it is intended that normal manufacturing tolerances apply, which tolerances depend upon the context in which the terms are used. In some instances, the term “substantially” is used to modify the terms “parallel” or “perpendicular.” In general, use of the term “substantially” reflects angles that are beyond manufacturing tolerances, for example, within +/−ten degrees.

It is desirable for magnetic field sensors to achieve a certain level or amount of accuracy even in the presence of variations in an air gap between the magnetic field sensor and the gear that may change from installation to installation or from time to time. It is also desirable for magnetic field sensors to achieve accuracy even in the presence of variations in relative positions of the magnet and the magnetic field sensing element within the magnetic field sensor. It is also desirable for magnetic field sensors to achieve accuracy even in the presence of unit-to-unit variations in the magnetic field generated by a magnet within the magnetic field sensors. It is also desirable for magnetic field sensors to achieve accuracy even in the presence of variations of an axial rotation of the magnetic field sensors relative to the gear. It is also desirable for magnetic field sensors to achieve accuracy even in the presence of temperature variations of the magnetic field sensors.

Examples below describe a particular gear as may be used upon an engine camshaft target object. However, similar circuits and techniques can be used with other cams or gears disposed upon the engine camshaft, or upon other rotating parts of an engine (e.g., crank shaft, transmission gear, anti-lock braking system (ABS)), or upon rotating parts of a device that is not an engine. Other applications may include linear translation sensors or other sensors where the target is not a rotating gear. The gear (or target) is not a part of the magnetic field sensors described below. The gear can have ferromagnetic gear teeth, which are generally soft ferromagnetic objects, but which can also be hard ferromagnetic objects, patterns, or domains which may or may not have actual physical changes in their shape.

Also, while examples are shown below of magnetic field sensors that can sense ferromagnetic gear teeth or gear teeth edges upon a gear configured to rotate, the magnetic field sensors can be used in other applications. The other applications include, but are not limited to, sensing ferromagnetic objects upon a structure configured to move linearly.

As used herein, the term “baseline” and the phrase “baseline level” are used to describe a lowest magnitude (which may be near zero or may be some other magnetic field) of a magnetic field experienced by a magnetic field sensing element within a magnetic field sensor when the magnetic field sensor is operating in a system. In some systems, this lowest magnetic field occurs when a magnetic field sensor is proximate to a gear valley as opposed to a gear tooth.

It will be understood that, in general, a difference between the baseline level and a higher level achieved, for example, when a gear tooth is proximate to a magnetic field sensor, is related to an ability of the magnetic field sensor to differentiate between a gear tooth and a valley, and thus, related to accuracy of the magnetic field sensor.

While it is described above that a baseline level is generated when a magnetic field sensor is proximate to a gear valley and a higher level is achieved when the magnetic field sensor is proximate to a gear tooth, other physical arrangements are also possible, for example, a reverse arrangement for which a baseline level is generated when a magnetic field sensor is proximate to a gear tooth and a higher level is achieved when the magnetic field sensor is proximate to a gear valley.

Referring to FIG. 1, an exemplary conventional magnetic field sensor 10 is responsive to a gear 22 having ferromagnetic gear teeth, e.g., gear teeth 22 a, 22 b, 22 c. It should be recognized that the gear 22 is but one type of “target object” or simply “target” which the magnetic field sensor 10 can be responsive.

The magnetic field sensor 10 includes a magnetic field sensing element 12 coupled to an electronic circuit 16. The magnetic field sensing element 12 and the electronic circuit 16 can be disposed upon (i.e., integrated within or upon) a substrate 14. For clarity, here the magnetic field sensing element 12 is shown to be a Hall element with an exaggerated size, and rotated out of the plane of the substrate 14. Furthermore, for clarity, the Hall element 12 is shown to be on top of the substrate 14, but it will be appreciated that Hall elements are usually disposed upon or within a surface of a substrate of an integrated circuit.

The magnetic field sensor 10 can also include a magnet 18 (e.g. a permanent magnet or hard ferromagnetic material). The magnet 18 is configured to generate a magnetic field, which is generally directed along an axis 24 at the position of the magnetic field sensing element 12, and which is subject to direction and amplitude changes depending upon positions of the gear teeth 22 a, 22 b, 22 c relative to the magnetic field sensor 10. However, the structure of the magnetic field at faces of the magnet 18 can be more complex due to a core 20.

The electronic circuit 16 is configured to generate an output signal (not shown). The output signal, when the gear is not moving, is indicative of whether the magnetic field sensor 10 is over a gear tooth or a gear valley. Thus, the magnetic field sensor 10 is sometimes referred to as a “tooth detector” as opposed to an “edge detector.” The output signal, when the gear is rotating, has an edge rate or a frequency indicative of a speed of rotation of the gear. Edges or transitions of states of the output signal can be used to identify positions of edges of the gear teeth as they pass by the magnetic field sensor.

The magnet 18 can include the central core 20 comprised of a soft ferromagnetic material disposed within the magnet 18. An exemplary magnet with a core is described in U.S. Pat. No. 6,278,269, entitled “Magnet Structure,” issued Aug. 21, 2001, which patent is assigned to the assignee of the present invention and incorporated herein by reference in its entirety. As described in U.S. Pat. No. 6,278,269, the pole configuration provided by the magnet 18 with the core 20 lowers the base field (or baseline) of a flux density of the magnetic field at some points above the surface of the core 20 (e.g., to the left of the core as shown) when a valley of the gear 22 is proximate to the magnetic field sensor 10. A predetermined baseline (e.g., within a range of about +/six hundred Gauss) at the magnetic field sensing element 12, and a resulting differential magnetic field signal 12 a, 12 b (i.e., an analog differential proximity signal) near zero, can be achieved with proper design.

In contrast, when a gear tooth of the gear 22 is proximate to the magnetic field sensing element 12, the magnetic field sensing element 12 experiences a higher magnetic field and generates the differential magnetic field signal 12 a, 12 b with a higher value. As described above, a difference between the baseline magnetic field and the higher magnetic field is related to ultimate accuracy of the magnetic field sensor 10.

The baseline magnetic field, which can occur when the magnetic field sensor 10 is proximate to a valley in the gear 22, remains relatively low, with little change, even as the air gap between the gear 22 and the magnetic field sensor 10 varies. This advantageous result of low baseline substantially independent of air gap is achieved by operation of the core 20, which results in opposite magnetic poles being presented at the face of the core 20 (i.e., left side as shown) proximate to the magnetic field sensing element 12, particularly when the magnetic field sensing element 12 is proximate to a valley in the gear 22. This effect is also described in U.S. Pat. No. 5,781,005, issued Jul. 14, 1998, entitled “Hall-Effect Ferromagnetic-Article-Proximity Sensor,” which patent is assigned to the assignee of the present invention and incorporated herein by reference in its entirety.

The above-described low baseline, which occurs when the magnetic field sensor is proximate to a gear valley, results in an enhanced ability of the electronic circuit 16 to differentiate the presence of the gear tooth from a gear valley.

The above-described low baseline also provides an ability to more easily compensate for temperature effects, since the baseline magnetic field is relatively small, and therefore, circuit variations that occur due to temperature can have less influence when the magnetic field sensor 10 is proximate to a valley in the gear 22. Essentially, any error in the circuitry is able to be well corrected near the baseline magnetic field level or range, since any multiplication of the error (near zero) is smaller. Therefore, a magnetic field threshold used to distinguish a tooth from a valley can be made smaller while maintaining precision because there is less noise or error in the system over its operating conditions such as temperature, or humidity.

The magnetic field described above and provided by the magnet 18 with the core 20 results in an improved accuracy of the magnetic field sensor 10. For example, the low baseline allows the magnetic field sensing element 12 to be somewhat statically misaligned from a center of the magnet 18, as will occur due to unit-to-unit variations of mechanical alignments, without sacrificing accuracy of the magnetic field sensor 10. Accuracy is discussed above.

Referring now to FIG. 1A, an exemplary conventional electronic circuit 50 can be the same as or similar to electronic circuit 16 of FIG. 1. The electronic circuit 50 can include in amplifier 54 coupled to receive a differential signal 52 a, 52 b, which can be the same as or similar to the differential signal 12 a, 12 b generated by the magnetic field sensing element 12 of FIG. 1. The amplifier 54 is configured to generate an amplified signal 54 a, which, in some embodiments, can split into two channels, a TPOS detector channel and a precision rotation detector channel.

In the true power on state (TPOS) channel, a TPOS detector 56 can be coupled to receive the amplified signal 54 a and configured to generate a TPOS output signal 56 a. In some embodiments, the TPOS detector 56 can include a comparator (not shown) configured to compare the amplified signal 54 a with a fixed (and trimmed) threshold. In these embodiments, the TPOS output signal 56 a can be a two-state binary signal for which a high state is indicative of a gear tooth being proximate to the magnetic field sensor 10 of FIG. 1 and a low state is indicative of a gear valley being proximate to the magnetic field sensor 10, or vice versa.

In the precision rotation detector channel, an automatic gain control (AGC) 58 can be coupled to receive the amplified signal 54 a and configured to generate a gain controlled signal 58 a. A precision rotation detector 60 can be coupled to receive the gain controlled signal 58 a and configured to generate a precision rotation detector output signal 60 a. Like the TPOS output signal 56 a, the precision rotation detector output signal 60 a can be a two-state binary signal for which a high state is indicative of a gear tooth being proximate to the magnetic field sensor 10 of FIG. 1 and a low state is indicative of a gear valley being proximate to the magnetic field sensor 10, or vice versa. Thus, both the TPOS detector 56 and the precision rotation detector 60 can be “tooth detectors.” However, it should be understood that the precision rotation detector channel uses the AGC 58, which, when the gear 22 is not rotating, will settle to an undesirable gain, resulting, once the gear 22 starts to rotate, in a period of time during which the gain is incorrect and the precision rotation detector is not fully accurate. Even if the AGC 58 were not used, still the precision rotation detector 60 uses internal thresholds that are properly updated only when the gear 22 is rotating. However, in other embodiments, the threshold can be supplied from outside of the electronic circuit 50.

In some alternate embodiments, the precision rotation detector 60 can be an “edge detector,” which is unable to identify whether the magnetic field sensor 102 is proximate to a gear tooth or a gear valley, particularly when the gear is not moving, but which is able to sense edges of gear teeth as they move past the magnetic field sensor 350.

Precision rotation detectors, e.g., the precision rotation detector 60, can have a variety of configurations. Some configurations are described in the above mentioned U.S. Pat. No. 6,525,531. However, other forms of precision rotation detectors are also known, including some that have two or more magnetic field sensing elements.

In general, from discussion above, it will be appreciated that the TPOS output signal 56 a is indicative of whether the magnetic field sensing element 12 is proximate to a gear tooth or a gear valley, even when the gear, e.g., the gear 22 of FIG. 1, is stationary. However, since the TPOS detector 56 uses a fixed threshold, in some embodiments, having limited adjustment at power up, variations in the edge placement in the TPOS output signal 56 a will occur due to a variety of factors, including, but not limited to, temperature variations, and variations in the air gap between the magnetic field sensing element 12 and the gear 22.

Unlike the TPOS detector 56, which uses fixed thresholds, the precision rotation detector 60 continually makes adjustments of thresholds to provide the precision rotation detector output signal 60 a with better accuracy of edge placements of the precision rotation detector output signal 60 a relative to physical positions of gear teeth. As described above, in part, it is these adjustments that make the precision rotation detector less accurate when it is first powered up or when the gear 22 first starts to rotate.

In some embodiments for which the TPOS detector and the precision rotation detector 60 are integrated onto a common substrate, a multiplexer/output module 62 can be coupled to receive the TPOS output signal 56 a and coupled to receive the precision rotation detector output signal 60 a. Select logic 64 can provide a selection signal 64 a, received by the multiplexer/output module 62. Depending upon the state of the selection signal 64 a, the multiplexer/output module 62 is configured to generate an output signal 62 a representative of a selected one of the TPOS output signal 56 a or the precision rotation detector output signal 60 a. The output signal 62 a can be provided in a variety of signal formats, including, but not limited to, a SENT format, an I²C format, a PWM format, or a two-state format native to the TPOS output signal 56 a and to the precision rotation detector output signal 60 a.

In some exemplary embodiments, the select logic 64 selects the output signal 62 a to be representative of the TPOS output signal 56 a for a predetermined amount of time after the gear 22 starts rotating as indicated by the TPOS output signal 56 a. Thereafter, the select logic 64 selects the output signal 62 a to be representative of the precision rotation detector output signal 60 a.

Referring now to FIG. 2, another exemplary conventional magnetic field sensor 300 is like the magnetic field sensor 10 of FIG. 1. The magnetic field sensor 300 includes a magnetic field sensing element 304 disposed on or in a substrate 302 along with an electronic circuit 306. A cylindrical magnet 308 having a core 310 is disposed proximate to and axially aligned with the magnetic field sensing element 304 along an axis 322 passing through an axis of the cylindrical magnet 308.

The substrate 302 can be the same as or similar to the substrate 14 of FIG. 1, the magnetic field sensing element 304 can be the same as or similar to the magnetic field sensing element 12 of FIG. 1, the electronic circuit 306 can be the same as or similar to the electronic circuit 16 of FIG. 1, the magnet 308 can be the same as or similar to the magnet 18 of FIG. 1, and the core 310 can be the same as or similar to the core 20 of FIG. 1. A gear 312 having gear teeth 312 a, 312 b, 312 c can be the same as or similar to the gear 22 of FIG. 1, which has gear teeth 22 a, 22 b, 22 c. It should be noted that the spacing or height or depth of the gear teeth may be wider or smaller than shown here and in figures described below.

The magnetic field sensing element 304 is generally aligned with the center of the core 310. The target or soft ferromagnetic teeth of the gear 312 are centered with the axis 322 of the magnet 308, and not offset other than by the manufacturing tolerances required to meet the desired performance.

It will be understood that the magnet 308 having the core 310 is expensive compared to a simple uniform magnet.

The magnetic field sensor 300 can rotate though a number of degrees, for example, through +/−one hundred eighty degrees (i.e., through three hundred sixty degrees), about the axis 322 as represented by an arrow 316 without loss of accuracy, with minimal loss or accuracy, or with a loss of accuracy acceptable for an application in which the magnetic field sensor 300 is used. The magnetic field sensor 300 can also rotate though a number of degrees, for example, through +/−twenty degrees, in a direction of an arrow 318, i.e., about a y-axis in an x-z plane of orthogonal axes 320, with a center of rotation at the magnetic field sensing element 304, with minimal performance variation.

Referring now to FIG. 3, a magnetic field sensor 350 includes a substrate 352. The substrate 352 has a first major surface 352 a. A first dimension 366 across the first major surface 352 a of the substrate 352 defines a width of the substrate 352 and a second dimension (not shown, into the page) across the first major surface 352 a of the substrate 352 perpendicular to the first dimension 366 defines a length of the substrate 352. A second major surface 352 b is parallel, or parallel within manufacturing and assembly tolerances, to the first major surface 352 a. The substrate has first and second substrate edges 352 c, 352 d, respectively, at ends of the width of the substrate 352. The substrate 352 has a center axis 352 e perpendicular to the first and second major surfaces 352 a, 352 b, respectively, of the substrate 352 and centered within the width and length of the substrate 352.

As used herein as above in reference to the substrate 352, the word “edge’ refers essentially to a relatively small surface.

While a leadframe and leads are not shown here or in figures below, in some embodiments, the substrate 352 here, and also substrates shown in figures below, are disposed upon a number of lead fingers of a leadframe in a flip-chip arrangement, in which an active surface of the substrate is disposed toward the leadframe. However, in other embodiments, the active surface of the substrate is disposed away from the leadframe which may include a base plate to support the die, while in other embodiments the die is placed across multiple die attach areas of the leadframe, and the die or substrate may be attached to the leadframe using standard packaging techniques, which include, but are not limited to, epoxy die attach (either conductive or non-conductive depending on the requirements), or die attach tape, and using wire bonding.

The magnetic field sensor 350 also includes a magnet 368, which has a first major surface 368 a proximate to the substrate 352. A first dimension 370 across the first major surface 368 a of the magnet 368 defines a width of the magnet and a second dimension (not shown, into the page) across the first major surface 368 a of the magnet 368 perpendicular to the first dimension 370 defines a length of the magnet 368. The magnet 368 has a second major surface 368 b distal from the substrate 352 and parallel to the first major surface 368 a of the magnet 368. The magnet 368 has third and fourth major opposing surfaces 368 c, 368 d, respectively, at ends of the width of the magnet 368. The magnet 368 has a center axis 360, a geometric axis, perpendicular to the first and second major surfaces 368 a, 368 b of the magnet 368 and centered within the width and length of the magnet 368.

The magnet can have a north pole, N, at the fourth major surface 368 d and a south pole, S, at the third major surface 368 c.

The magnetic field sensor 350 also includes a magnetic field sensing element 354 disposed upon or within the first major surface 352 a or the second major surface 352 b of the substrate 352. The magnetic field sensing element 354 is configured to generate a so-called “magnetic field signal” (an electronic signal).

The magnetic field sensing element 354 includes a center upon the first major surface 352 a or the second major surface 352 b of the substrate 352 and a center axis 380 generally parallel to the center axis 360 of the magnet. The center axis 380 of the magnetic field sensing element 354 is substantially closer to the fourth major surface 368 d of the magnet 368 than to the center axis 360 of the magnet 368. In other words, a dimension 364 is substantially smaller than a dimension 362.

In one particular embodiment as shown, the center axis 380 of the magnetic field sensing element 354 is at or beyond the width of the magnet 368, the width of the magnet 368 defined by the dimension line 370. In these embodiments, a distance between the center axis 360 of the magnet 368 and the center axis 380 of the magnetic field sensing element 354 is greater than or equal to a distance from the center axis 360 of the magnet 380 to one of the third or fourth surfaces 368 c, 368 d of the magnet 368.

However, in other embodiments, the center axis 380 of the magnetic field sensing element 354 is within the width of the magnet 368 but still such that the center axis 380 of the magnetic field sensing element 354 is substantially closer to one of the third or fourth surfaces 368 c, 368 d of the magnet 368 than to the center axis 360 of the magnet 368.

The magnetic field sensor 350 can include an electronic circuit 358 disposed on or in the substrate 352. While the magnetic field sensing element 354 is shown to be on the same side of the substrate 352 as the electronic circuit, in some other embodiments, the electronic circuit 358 is on the opposite side of the substrate 352 as the magnetic field sensing element 354. One way to achieve the electronic circuit 352 and the magnetic field sensing element 354 on opposite sides of the substrate 352 would be to use through silicon vias (TSVs) or other through via techniques. In other embodiments, the magnetic field sensor 350 can employ a multi-chip structure having a flip chip on die arrangement, or die on die arrangement with wire bonding for which the electronic circuit 358 can be on one substrate and the magnetic field sensing element 354 can be on another substrate. The same applies to other arrangements described in figures below.

It is shown that the center axis 352 e of the substrate 352 is slightly offset from the center axis 360 of the magnet 368. This offset is shown merely for clarity, and, in some embodiments, the center axis 352 e of the substrate 352 is aligned with the center axis 360 of the magnet 368. However, embodiments for which the center axes 352 e, 360 do not align are also possible.

In some embodiments, as shown, the center axis 360 of the magnet 368 and the center axis 352 e of the substrate 352 intersect the gear 370, but do not intersect a center of rotation 382 of the gear 370. Instead, the magnetic field sensor 350 can be offset along an x-axis of orthogonal rectangular coordinates 376 such that the center axis 380 of the magnetic field sensing element 354 intersects the center of rotation 382 of the gear 370. However, in other embodiments, the center axis 380 of the magnetic field sensing element 354 does not intersect the center of rotation 382 of the gear 370, but still the magnetic field or magnetic flux changes enough by the rotation of the target or gear 370 that gear teeth and valleys may be detected by the magnetic field sensor 350.

It will be appreciated that the magnet 368 can be comprised of a hard ferromagnetic material. Unlike the conventional magnet 308 of FIG. 2, in some embodiments, the magnet 368 can be comprised of one uniform material, and can have no central core. Lacking the central core 20 of FIG. 1, the magnet 368 can be less expensive than the magnet 18 of FIG. 1 or the magnet 308 of FIG. 2. In some embodiments, the magnet 368 is a molded part formed, for example, as a mixture of a polymer and magnetic (i.e., hard ferromagnetic) particles.

Illustrative hard ferromagnetic materials that can be used as magnetic particles within the ferromagnetic mold material include, but are not limited to, hard ferromagnetic ferrites, SmCo alloys, and NdFeB alloy materials. Also, Plastiform® materials by Arnold Magnetic Technologies Corp. or other plastic compounds with hard ferromagnetic particles, for example a thermoset polymer such as polyphenylene sulfide material (PPS) or nylon material containing SmCo, NdFeB, or hard ferromagnetic ferrite magnetic particles; or a thermoset polymer such as SUMIKON®EME of Sumitomo Bakelite Co., Ltd or similar type of thermoset mold material containing hard ferromagnetic particles can be used. In some embodiments it may be desirable to align the hard ferromagnetic particles during molding to form a more isotropic or directional permanent magnetic material by molding in the presence of a magnetic field; whereas, in other embodiments, a sufficient magnet may result without an alignment step during molding. It will be appreciated that an NdFeB or a SmCo alloy may contain other elements to improve temperature performance, magnetic coercively, or other magnetic properties useful to a magnetic design.

In some other embodiments, the magnet 368 has a core or concentrator comprised of a soft ferromagnetic material like the core 310 and the magnet 308 of FIG. 2. However, it should be apparent that the magnet without a core leads to a lower cost magnetic field sensor. In some embodiments, the magnet 368 is rectangular, and in other embodiments, the magnet 368 is cylindrical. In some other embodiments, the magnet 368 has another shape, for example, square, oral, or oblong. Other shapes not listed herein are also possible.

In some alternate embodiments, the magnet 368 (and other similar magnets described in figures below) can include a sheet of soft ferromagnetic material on one side of the magnet 368, for example, side 368 c.

The magnetic field sensing element 354 is shown to be disposed within the substrate, which may be indicative of a Hall element. However, the magnetic field sensing element 354 can be any type of magnetic field sensing element. In some embodiments, the magnetic field sensing element 354 comprises a Hall element, for example, a planar Hall element or a vertical Hall element. In some embodiments, the magnetic field sensing 354 element comprises a magnetoresistance element of a type described above, or a plurality of magnetoresistance elements coupled in a bridge arrangement.

In some embodiments, a major axis of sensitivity of the magnetic field sensing element 352 is parallel to the first surface 352 a of the substrate 352 and parallel to the width dimension 366 of the substrate 352. In other embodiments, the major axis of sensitivity of the magnetic field sensing element 354 is perpendicular to the first surface 352 a of the substrate 352.

It will be understood that different types of magnetic field sensing elements may be used in or for different applications. The type of magnetic field sensing element can be selected based upon the magnetic field levels to be sensed or present in the operating environment, the geometry of the gear or target to be sensed, as well as the changes in magnetic field to be sensed. For example, giant magnetoresistance (GMR) elements tend to have higher sensitivities to magnetic fields than Hall elements. A higher sensitivity magnetic field sensing element, such as an AMR, GMR, or a spin-valve, may be preferred for sensing lower magnetic field levels present in geometries where air gaps, i.e., distances between the target and the magnetic field sensor are large.

In some embodiments, a combination of two or more different types of sensing elements may be used on the same magnetic field sensor at the position of element 354, or integrated circuit, for example, but not limited to, a vertical Hall element and a GMR element having different sensitivities, or two planar Hall elements with different sensitivities, integrated on the same substrate. The two different sensitivities can be used to result in a magnetic field sensor that has two different operating ranges.

It will be understood that circuits that use two magnetic field sensing elements can be similar to the electronic circuit 50 of FIG. 1, but having two different selectable input amplifiers. In another embodiment a single input amplifier may be used and a set of switches can input the signals from one of the two selected sensing elements at a time. In such an embodiment the input amplifier may have a variable gain selectable based on the state of the switches between the sensing elements and the input amplifier.

Hysteresis of some types of magnetic field sensing elements can make them less desirable for a particular application. Cost is also a consideration, since some types of magnetic field sensing elements may require specialized processing. It also may be possible to utilize a multi-chip approach.

As described above, the magnet 368 can have a north pole, N, at the fourth surface 368 d and a south pole, S, at the third surface 368 c, a line between which is parallel to the first major surface 352 a of the substrate 352. With this particular arrangement, magnetic flux (or field) lines pass through the third and fourth surfaces 368 c, 368 d of the magnet 368 in a direction generally perpendicular to the surfaces 368 c, 368 d. When the magnetic field sensing element 354 is proximate to a valley in the gear 370, the magnetic flux lines pass through the magnetic field sensing element 354 in a direction generally perpendicular to, but, depending on the exact relative positions of the magnetic field sensing element 354, the magnet 368, and the gear 370, possibly at another angle relative to the surface 352 a of the substrate 352. In operation, the angle of the magnetic field relative to the surface 352 a of the substrate 352, as well as a magnitude of the magnetic field, change as gear teeth and valleys pass by the magnetic field sensor 350 as the gear 370 rotates.

For embodiments in which the major response axis of the magnetic field sensing element 354 is perpendicular to the first surface 352 a of the substrate 352, e.g., for a planar Hall element, when the magnetic field sensing element 354 is proximate to a valley in the gear 370, the magnetic field passing through the magnetic field sensing element 354 is at a first angle, which is between parallel and perpendicular to the major axis of sensitivity of the magnetic field sensing element 354, the magnetic field has a first magnitude, and an output signal from the magnetic field sensing element 354 has a first amplitude. However, when the magnetic field sensing element 354 is proximate to a gear tooth, the magnetic field passing through the magnetic field sensing element 354 is redirected by the gear tooth to be at a second different angle, which is also between parallel and perpendicular to the major response axis of the magnetic field sensing element 354, and/or to have a second different magnitude, and an output signal from the magnetic field sensing element 354 has a second different amplitude.

In a first non-limiting example, when the magnetic field sensing element 354 is proximate to a valley in the gear 370, a magnetic field signal generated by the magnetic field sensing element 354 is lower than when a gear tooth of the gear 370 is near the magnetic field sensing element 354, due to a larger angle of the magnetic flux between a flux vector and the major response axis of the magnetic field sensing element 354 (planar Hall type of element in the example). Thus the magnetic field is more aligned with the major response axis when the tooth is close and this results in a larger magnetic field signal. The magnetic field sensor 350 forms a tooth detector.

It should be apparent that the relative positions of the magnetic sensing element 354, the magnet 368, and the gear 370 can change the angle of the magnetic flux (field) lines and/or the magnitude of the magnetic field passing through the magnetic field sensing element 354. Thus, in a second non-limiting example, at some relative positions, the above-described lower magnetic field signal generated by the magnetic field sensing element 354 when proximate to a valley in the gear 354 may instead be lower when the magnetic field sensing element 354 is proximate to a tooth

It should be recognized that all embodiments that result in a measurable change in magnetic field strength at the magnetic field sensing element 354 for gear valleys versus gear teeth are encompassed by arrangements described herein.

For embodiments in which the major response axis of the magnetic field sensing element 354 is parallel to the first surface 352 a of the substrate 352, e.g., for a GMR magnetoresistance element, signal polarity may be reversed from that described above.

It should be apparent that the selection of the type of magnetic field sensing element, e.g., direction of the axis of sensitivity, will influence the baseline level for a particular application or design.

The magnetic field sensor 350, and the simple magnet 368 having no core in particular, typically provide a higher (and therefore, less desirable) magnetic field baseline level (e.g., when the magnetic field sensor 350 is proximate to a valley (or tooth) in the gear 370) than the baseline levels described above in conjunction with FIGS. 1 and 2, for which a magnet with a core is used. However, the overall change in magnetic field direction and magnitude at the position of the magnetic field sensing element 354 is sufficient as gear teeth and valleys pass by for the magnetic field sensor 350 to determine the state of the target as a tooth or a valley. Thus, the magnetic field sensor 350 still provides a good discrimination of gear teeth from gear valleys.

The electronic circuit 358 can be the same as or similar to the electronic circuit 50 of FIG. 1A.

Particularly for gear teeth that are wide in x and y directions, the magnetic field sensor 350 can rotate though a number of degrees, for example, through +/−one hundred eighty degrees (i.e., through three hundred sixty degrees), about the center axis 380 of the magnetic field sensing element 354 as represented by an arrow 372. The rotation results in minimal performance variation. The magnetic field sensor 350 can also rotate though a number of degrees, for example, through +/−twenty degrees, in a direction of an arrow 374, i.e., about a y-axis in an x-z plane of orthogonal axes 376, with a center of rotation at the magnetic field sensing element 354, with minimal performance variation.

Referring now to FIG. 3A, in which like elements of FIG. 3 are shown having like reference designations, a magnetic field sensor 400 is like the magnetic field sensor 350 of FIG. 3, except that a magnet 402 replaces the magnet 368 of FIG. 3. The magnet 402 has a first major surface 402 a proximate to the substrate 352. The first dimension 370 across the first major surface 402 a of the magnet 402 defines a width of the magnet 402 and the second dimension (not shown, into the page) across the first major surface 402 a of the magnet 402 perpendicular to the first dimension defines a length of the magnet 402. The magnet 402 also has a second major surface 402 b distal from the substrate 352 and substantially parallel to the first major surface 402 a of the magnet 402. The magnet 402 has third and fourth major surfaces 402 c, 402 d, respectively, at ends of the width of the magnet 402. The magnet 402 has the center axis 360, a geometric axis, perpendicular to the first and second major surfaces 402 a, 402 b of the magnet 402 and centered within the width and length of the magnet 402.

Unlike the magnet 368 of FIG. 3, the magnet 402 has a north pole, N, at the first surface 402 a, and a south pole, S, at the second surface 402 b, a line between which is perpendicular to the first major surface 352 a of the substrate 352. With this particular arrangement, magnetic flux lines pass through the first and second surfaces 402 a, 402 b of the magnet 402 in a direction generally perpendicular to the surfaces 402 a, 402 b. Like the magnetic field sensor 350 of FIG. 3, when the magnetic field sensing element 354 is proximate to a gear valley, the magnetic flux lines pass through the magnetic field sensing element 354 in a direction generally perpendicular to, but, possibly at another angle relative to, the surface 352 a of the substrate 352. In operation, the angle of the magnetic field, as well as a magnitude of the magnetic field, change as gear teeth and valleys pass by the magnetic field sensor 400 as the gear 370 rotates.

As described above in conjunction with FIG. 3, relative positions of the magnetic field sensing element 354, the magnet 402, and the gear 370 can influence the angle of the magnetic flux lines passing through the magnetic field sensing element 354 and/or the magnitude of the magnetic field passing through the magnetic field sensing element 354. Thus, as described above in first and second non-limiting examples described in conjunction with FIG. 3, depending upon relative positions, a valley in the gear 370 being proximate to the magnetic field sensing element 354 can result in a smaller magnetic field signal generated by the magnetic field sensing element 354, or a tooth of the gear 370 being proximate to the magnetic field sensing element 354 can result in a smaller magnetic field signal being generated by the magnetic field sensing elements 354. The magnetic field sensor 400 forms a tooth detector.

As described above in conjunction with FIG. 3, the magnetic field sensing element 354 includes the center upon the first major surface 352 a or the second major surface 352 b of the substrate 352 and the center axis 380 generally parallel to the center axis 360 of the magnet 402 The center axis 380 of the magnetic field sensing element 354 is substantially closer to the fourth major surface 402 d of the magnet 402 than to the center axis 360 of the magnet 402. In other words, a dimension 364 is substantially smaller than a dimension 362.

Various arrangements of magnetic field sensors are shown below in conjunction with FIGS. 3B and 3C. In each of these various arrangements, a magnet is shown having the orientation of that shown in conjunction with FIG. 3. It should be appreciated that, in alternate embodiments (not shown), embodiments like those shown below in FIGS. 3B and 3C can instead have a magnet with an orientation of poles such as the magnet 402 shown in conjunction with FIG. 3A.

Referring now to FIG. 3B, a magnetic field sensor 450 includes a substrate 452. The substrate 452 has a first major surface 452 a. A first dimension 476 across the first major surface 452 a of the substrate 452 defines a width of the substrate 452 and a second dimension (not shown, into the page) across the first major surface 452 a of the substrate 452 perpendicular to the first dimension 476 defines a length of the substrate 452. The substrate has first and second substrate edges 452 c, 452 d, respectively, at ends of the width of the substrate 452. A second major surface 452 b of the substrate 452 is parallel to the first major surface 452 a. The substrate 452 has a center axis 452 e, a geometric axis, perpendicular to the first and second major surfaces 452 a, 452 b, respectively, of the substrate 452 and centered within the width and length of the substrate 452.

The magnetic field sensor 450 also includes a magnet 458, which has a first major surface 458 a proximate to the substrate 452. A first dimension 474 across the first major surface 458 a of the magnet 458 defines a width of the magnet and a second dimension (not shown, into the page) across the first major surface 458 a of the magnet 458 perpendicular to the first dimension defines a length of the magnet 458. The magnet 458 has a second major surface 458 b distal from the substrate 452 and substantially parallel to the first major surface 458 a of the magnet 458. The magnet 458 has third and fourth major opposing surface 458 c, 458 d, respectively, at ends of the width of the magnet 458. The magnet 458 has a center axis 470, a geometric axis, perpendicular to the first and second major surfaces 458 a, 458 b of the magnet 458 and centered within the width and length of the magnet 458.

The magnetic field sensor 450 also includes a magnetic field sensing element 454 disposed upon or within the first major surface 452 a or the second major surface 452 b of the substrate 452. The magnetic field sensing element 454 is configured to generate a magnetic field signal (an electronic signal).

The magnetic field sensing element 454 includes a center upon the first major surface 452 a or the second major surface 452 b of the substrate 452 and a center axis 456 generally parallel to the center axis 470 of the magnet 458. The center axis 456 of the magnetic field sensing element 454 is substantially closer to the fourth surface 458 d of the magnet 458 than to the center axis 470 of the magnet 458. In other words, a dimension 473 is substantially smaller than a dimension 478.

In one particular embodiment as shown, the center axis 456 of the magnetic field sensing element 454 is at or beyond the width of the magnet 458, the width of the magnet 458 defined by the dimension line 474. In these embodiments, a distance between the center axis 470 of the magnet 458 and the center axis 456 of the magnetic field sensing element 454 is greater than or equal to a distance from the center axis 470 of the magnet 458 to one of the third or fourth surface 458 c, 458 d of the magnet 458.

However, in other embodiments, the magnetic field sensing element 454 is within the width 470 of the magnet 458 but still such that the center axis 456 of the magnetic field sensing element 454 is substantially closer to one of the third or fourth surfaces 458 c, 458 d of the magnet 458 than to the center axis 470 of the magnet 458.

The magnetic field sensor 450 can include an electronic circuit 472 disposed on the substrate 452. The electronic circuit 472 can be the same as or similar to the electronic circuit 50 of FIG. 1A

It is shown that the center axis 452 e of the substrate 452 is slightly offset from the center axis 470 of the magnet 458. This offset is shown merely for clarity, and, in some embodiments, the center axis 452 e of the substrate 452 is aligned with the center axis 470 of the magnet 458. However, embodiments for which the center axes 452 e, 470 do not align are also possible.

In some embodiments, as shown, the center axis 470 of the magnet 458 and the center axis 452 e of the substrate 452 intersect a gear 460, but do not intersect a center of rotation 480 of the gear 460. Instead, the magnetic field sensor 450 can be offset along an x-axis of orthogonal rectangular coordinates 468 such that the center axis 456 of the magnetic field sensing element 454 intersects the center of rotation 480 of the gear 460. In other embodiments, the center axis 456 of the magnetic field sensing element 454 does not intersect the center of rotation 480 of the gear 460.

It will be appreciated that the magnet 458 can be comprised of a hard ferromagnetic material. Unlike the conventional magnet 308 of FIG. 2, in some embodiments, the magnet 458 can be comprised of a single uniform material and can have no central core. Lacking the central core 20 of FIG. 1, the magnet 458 can be less expensive than the magnet 18 of FIG. 1 or the magnet 308 of FIG. 2. In some embodiments, the magnet 458 is a molded part formed, for example, as a mixture of a polymer and magnetic (i.e., hard ferromagnetic) particles. Molded magnets having magnetic particles are described above in conjunction with FIG. 3.

In some other embodiments, the magnet 458 has a core comprised of a different material like the magnet 308 of FIG. 2.

In some embodiments, the magnetic field sensing element 454 comprises a Hall element, for example, a planar Hall element or a vertical Hall element. In some embodiments, the magnetic field sensing element 454 comprises a magnetoresistance element of a type described above, or a plurality of magnetoresistance elements coupled in a bridge arrangement

In some embodiments, a major axis of sensitivity of the magnetic field sensing element 454 is parallel to the first surface 452 a of the substrate 454 and parallel to the width dimension 476 of the substrate 452. In other embodiments, the major axis of sensitivity of the magnetic field sensing element 454 is perpendicular to the first surface 452 a of the substrate 452.

As described above, the magnet 458 can have a north pole, N, at the fourth surface 458 d, and a south pole, S, at the third surface 458 c, a line between which is parallel to the first major surface 452 a of the substrate 452. With this particular arrangement, magnetic field lines pass through the third and fourth surfaces 458 c, 458 d of the magnet 458 in a direction generally perpendicular to the surfaces 458 c, 458 d. When the magnetic field sensing element 454 is proximate to a gear valley, the magnetic flux lines pass through the magnetic field sensing element 454 in a direction generally perpendicular to, but, depending upon the exact relative positions of the magnetic field sensing element 454, the magnet 458, and the gear 460, possibly at another angle relative to the surface 452 a of the substrate 452. In operation, the angle of the magnetic field, and/or a magnitude of the magnetic field, can change as gear teeth and valleys pass by the magnetic field sensor 450 as the gear 460 rotates.

As described above in conjunction with FIG. 3, relative positions of the magnetic field sensing element 454, the magnet 452, and the gear 460 can influence the angle of the magnetic flux lines passing through the magnetic field sensing element 454 and/or the magnitude of the magnetic field passing through the magnetic field sensing element 454. Thus, as described above in first and second non-limiting examples described in conjunction with FIG. 3, depending upon relative positions, a valley in the gear 460 being proximate to the magnetic field sensing element 454 can result in a smaller magnetic field signal generated by the magnetic field sensing element 454, or a tooth of the gear 460 being proximate to the magnetic field sensing element 454 can result in a smaller magnetic field signal being generated by the magnetic field sensing elements 454. The magnetic field sensor 450 forms a tooth detector.

First and second non-limiting examples described above in conjunction with FIG. 3 also apply to the magnetic field sensor 450. The magnetic field sensor 450 forms a tooth detector.

For embodiments in which the major response axis of the magnetic field sensing element 454 is parallel to the first surface 452 a of the substrate 452, e.g., a GMR magnetoresistance element, signal polarity may be reversed.

It should be apparent that the selection of the type of magnetic field sensing element, e.g., direction of axis of sensitivity, will influence the baseline level for a particular application or design.

The magnetic field sensor 450, and the simple magnet 458 having no core in particular, typically provides a higher (and less desirable) magnetic field baseline level (e.g., when the magnetic field sensor 450 is proximate to a valley (or tooth) in the gear 460) than the baseline levels described above in conjunction with FIGS. 1 and 2, for which a magnet with a core is used. However, the overall change in magnetic field direction and magnitude at the position of the magnetic field sensing element 454 is sufficient as gear teeth and valleys pass by the magnetic field sensor 450 to determine the state of the target as tooth or valley. Thus, the magnetic field sensor 450 still provides a good discrimination of gear teeth from gear valleys.

The electronic circuit 472 can be the same as or similar to the electronic circuit 50 of FIG. 1A.

Particularly for gear teeth that are wide in x and y directions, the magnetic field sensor 450 can rotate though a number of degrees, for example, through +/−one hundred eighty degrees (i.e., though three hundred sixty degrees), about the center axis 456 of the magnetic field sensing element 454 as represented by an arrow 464. The rotation results in minimal performance variation. The magnetic field sensor 450 can also rotate though a number of degrees, for example, through +/−twenty degrees, in a direction of an arrow 466, i.e., about a y-axis in an x-z plane of orthogonal axes 468, with a center of rotation at the magnetic field sensing element 454 with minimal performance variation.

Referring now to FIG. 3C, in which like elements of FIG. 3 are shown having like reference designations, a magnetic field sensor 600 can include the substrate 352 having the magnetic field sensing element 354 and the electronic circuit 358 disposed thereon. The substrate 352 can be coupled to a leadframe, here shown for clarity having only two leads 606 a, 606 b, and not showing a base plate under the substrate 352. It will be understood that the leadframe has other parts, for example, a base plate (not shown) or die attach areas (not shown) that would be used in a case where the substrate 352 spans multiple leads, each of which that may be positioned under the substrate 352. For a flip chip device, the die attach area may be comprised of lead fingers to connect the substrate 352 to the leadframe with solder bumps, for example.

The magnetic field sensor 600 can also include the magnet 368. In some embodiments the magnetic field sensor 600 includes an encapsulation 602 that surrounds the substrate 352 and part of the leadframe 606 a, 606 b. In these embodiments the magnet 368 can be coupled to or affixed to the encapsulation 602 is shown, with adhesive, epoxy, glue, tape, or the like.

In other embodiment the magnet 368 is attached to the leadframe with adhesive, tape, glue, or another method, prior to overmolding and is encapsulated with mold compound, mold material, potting compound, or other encapsulant at the same time as the substrate 352.

In other embodiments, in addition to or in place of the encapsulation 602, the magnetic field sensor 600 can include a second encapsulation 604 that surrounds at least the magnet 368. In some embodiments, the encapsulation 604 surrounds the magnet 368, the substrate 352, and also part of the leadframe 606 a, 606 b, for example, in a single molding step. In another embodiment the magnet 368 itself is molded with a hard ferromagnetic molding material (described above) and may be dimensioned to be inside of the first encapsulation 602 or outside the 602 boundary.

In some embodiments, one or more passive components 608 may also be placed in the encapsulation 602, in the encapsulation 604 that extends down the leads (e.g., 606 a, 606 b), or in a combination of the encapsulations 602, 604. Some such arrangements are described in U.S. patent application Ser. No. 13/748,999, filed Jan. 24, 2013, entitled “Magnetic Field Sensor Integrated Circuit With Integral Ferromagnetic Material,” and in U.S. patent application Ser. No. 13/871,131, filed Apr. 26, 2012, and entitled “Integrated Circuit Package Having A Split Lead Frame And A Magnet,” which are both assigned to the assignee of the present invention, and which are both incorporated by reference herein their entireties.

In some embodiments, an RC filter 608 can be coupled to the leads (e.g., 606 a, 606 b) and can be disposed within the encapsulation 602 with the substrate 352, or within the encapsulation 604. In another embodiments a capacitor couples at least two of the leads (e.g., 606 a, 606 b) and another at least one package lead is split (e.g., 606 a) the split coupled with a resistor, wherein the resistor and capacitor are molded with in the first encapsulation 602 containing the substrate 352, or within the second encapsulation 604 at some point on the leads (e.g., 606 a, 606 b) away from the molded body 602 containing the substrate 352.

Passive components, such as the passive electrical components 608, can be used within any of the embodiments described herein.

Other types of magnets, included molded magnets, are described above in conjunction with FIG. 3. In some cases, the magnet 368 itself may be coated to improve reliability. In one particular example, the magnet 368 is comprised of a NdFeB type of magnet coated with a thin layer of Nickel to prevent or reduce corrosion.

The encapsulations 602, 604 can be provided from a variety of materials, including, but not limited to, plastic, or mold compound material.

While the leads 606 a, 606 b are shown to leave the substrate 352 in a particular direction, in other embodiments, the lead 606 a, 606 b can leave the substrate 352 in another direction.

The magnetic field sensors shown above in FIGS. 3A, and 3B can also have leadframes and encapsulations the same as or similar to the encapsulations 602, 604.

Referring now to FIG. 3D, in which like elements of FIG. 3 are shown having like reference designations; a plurality of magnetic field sensing element 354 a, and as shown nine magnetic field sensing elements, although other numbers are also possible, are disposed over or in the first surface 352 a of the substrate 352 in the magnetic field sensor 350. The magnet 368 is disposed under the substrate 352.

As shown, the magnetic field sensing element 354 can be but one of the plurality of magnetic field sensing elements 354 a, each of which is disposed over or in the surface 352 a proximate to each other.

In some embodiments, each one of the plurality of magnetic field sensing elements 354 a can have the same structure as the magnetic field sensing element 354. In other embodiments, the structure can be different.

While a center one of the plurality magnetic field sensing elements 354 a is shown to represent the magnetic field sensing element 354 of FIG. 3, any one of the plurality of magnetic field sensing elements 354 a can be selected to be the magnetic field sensing element 354. In some embodiments, after the selection is made, the remaining magnetic field sensing elements can thereafter be deactivated.

A selection circuit 358 a, which can be a part of the electronic circuit 358 of FIG. 3, can be configured to receive signals from the plurality of magnetic field sensing elements 354 a and to select one of the signals as an output signal used by other portions of the electronic circuit 358, therefore selecting one of the plurality of magnetic field sensing elements 354 a to be the magnetic field sensing element 354. The selection circuit 358 a can include switches or the like (not shown) to make the selection of the magnetic field sensing element 354 used by the magnetic field sensor 350. In some embodiments, the selection circuit 368 a itself does not receive the signals from the plurality of magnetic field sensing elements 354 a, but instead causes a selected output signal or selected set of output signals to be connected to sensing circuitry.

As described above, relative positions of the magnetic field sensing element 354, the magnet 358, and the gear 370 (FIG. 3) influence accuracy (and potentially output signal sign) of the magnetic field sensor 350. Accordingly, a signal experienced by the selected magnetic field sensing element 354 as the gear 370 rotates will be influenced by selection from among the plurality of magnetic field sensing elements 354 a.

During manufacture of the magnetic field sensing sensor 350, there are certain manufacturing tolerances in the position of the substrate 352 relative to the magnet 368. These tolerances can lead to a less accurate magnetic field sensor 350 due to the increased error or expected range of signals from the magnetic field sensing elements. Selecting a magnetic field sensing element from the plurality of magnetic fields sensing elements 354 a tends to improve the overall accuracy of the magnetic field sensor 350. In general, lower manufacturing tolerance results in a slower rate of manufacture of magnetic field sensors. It may be advantageous to manufacture magnetic field sensors rapidly, resulting in relatively large manufacturing tolerances. Thus, it may be advantageous (even regardless of manufacturing rate) to select which one of the plurality of magnetic field sensing elements 354 a to use as the magnetic field sensing element 354 by which one provides best accuracy of the magnetic field sensor 350 during manufacture of the magnetic field sensor 350.

Furthermore, during installation of the magnetic field sensor 350 proximate to the gear 370 (or a target), there is installation position tolerance of the magnetic field sensor 350 relative to the gear 370. Thus, it may be advantageous to select which one of the plurality of magnetic field sensing elements 354 a to use as the magnetic field sensing element 354 by which one provides best accuracy of the magnetic field sensor 350 during installation or after the installation of the magnetic field sensor 350.

Some techniques that use a plurality of magnetic field sensing elements are described in U.S. patent application Ser. No. 13/439,094, filed Apr. 4, 2012, and entitled “High Accuracy Differential Current Sensor For Applications Like Ground Fault Interrupters,” which is assigned to the assignee of the present invention, and which is incorporated herein in its entirety.

While the plurality of magnetic field sensing elements 354 a is shown in a rectangular grid arrangement, other arrangements are possible, for example, circular or near circular arrangements, irregularly spaced arrangements, or line arrangements having any number of magnetic field sensing elements, and including line arrangements that are not horizontal or vertical on the page as shown.

In a non-limiting example, a plurality of magnetic field sensing elements is arranged as a line arrangement on a diagonal (relative to the page) where positions of the individual magnetic field sensing elements overlap in one direction, but do not overlap in a second direction orthogonal to the first direction (thus, they do not touch each other). Such an embodiment allows the plurality of magnetic field sensing elements to be spaced closer in the one direction than the size of an individual magnetic field sensing element to allow for smaller spacing tolerances to be realized. A plurality or such diagonal arrangements may also be used.

The above plurality of magnetic field sensing elements and selection therefrom can be used in any of the embodiments described herein, and for any of the magnetic field sensing elements shown or described herein, including embodiments that use more than one active magnetic field sensing element.

Now turning to arrangements that functionally use more than one active magnetic field sensing element, conventional magnetic field sensors that use two magnetic field sensing elements are not described explicitly herein. However, it will be appreciated that conventional arrangements that use two magnetic field sensing elements position the magnetic field sensing elements across a gear. In other words, for conventional arrangements that use two magnetic field sensing elements, a line passing through the two magnetic field sensing elements does not intersect a gear or other target object that is being sensed. The conventional magnetic field sensors that use two (or more) magnetic field sensing elements are coupled in and operate in a differential arrangement. The subtraction of the two signals results in operation around a zero level and reduces the effects of changes in the baseline due to temperature, humidity, and other package stresses, for example. Advantages of differential arrangements will be understood. It will be appreciated that the conventional differential arrangements can operate only as edge detectors and not as tooth detectors.

In contrast, magnetic field sensors described below in conjunction with FIGS. 4-4B and 4D position two magnetic field sensing elements such that a line passing through the two magnetic field sensing elements intersects s a gear or other target object. The magnetic field sensors described below can operate as tooth detectors, while maintaining the positive advantages like those of a differential arrangement, including, but not limited to, reduced variation over temperature, humidity, and package stress.

Referring now to FIG. 4 a magnetic field sensor 900 includes a substrate 902. The substrate 902 has a first major surface 902 a. A first dimension 912 across the first major surface 902 a of the substrate 902 defines a width of the substrate 902 and a second dimension (not shown, into the page) across the first major surface 902 a of the substrate 902 perpendicular to the first dimension 912 defines a length of the substrate 902. A second major surface 902 b of the substrate 902 is parallel to the first major surface 902 a. The substrate has first and second substrate edges 902 c, 902 d, respectively, at ends of the width of the substrate 902. The substrate 902 has a center axis 902 e perpendicular to the first and second major surfaces 902 a, 902 b, respectively, of the substrate 902 and centered within the width and length of the substrate 902.

The magnetic field sensor 900 also includes a magnet 922, which has a first major surface 922 a proximate to the substrate 902. A first dimension 924 across the first major surface 922 a of the magnet 922 defines a width of the magnet and a second dimension (not shown, into the page) across the first major surface 922 a of the magnet 922 perpendicular to the first dimension 924 defines a length of the magnet 922. The magnet 922 has a second major surface 922 b distal from the substrate 902 and substantially parallel to the first major surface 922 a of the magnet 922. The magnet 922 also has third and fourth opposing surfaces 922 c, 922 d, respectively, at ends of the width of the magnet 922. The magnet 922 has a center axis 926, a geometric axis, perpendicular to the first and second major surfaces 922 a, 922 b of the magnet 922 and centered within the width and length of the magnet 922.

The magnet 922 can have a north pole, N, at the fourth major surface 922 d and a south pole, S, at the third major surface 922 c. A line between the north pole and the south pole can intersect a gear 930.

The magnetic field sensor 900 also includes a first magnetic field sensing element 904 disposed upon or within the first major surface 902 a or the second major surface 902 b of the substrate 902. The first magnetic field sensing element 904 is configured to generate a first magnetic field signal (an electronic signal).

The first magnetic field sensing element 904 includes center upon the first major surface 902 a or the second major surface 902 b of the substrate 902, and a center axis 906, a geometric axis, generally parallel to the center axis 926 of the magnet. The center axis 906 of the first magnetic field sensing element 904 is substantially closer to the fourth major surface 922 d of the magnet 922 than to the center axis 926 of the magnet 922. In other words, a dimension 916 is substantially smaller than a dimension 918.

The magnetic field sensor 900 can also include a second magnetic field sensing element 908 disposed upon or within the first major surface 902 a or the second major surface 902 b of the substrate 902. The second magnetic field sensing element 908 is configured to generate a second magnetic field signal (an electronic signal).

The second magnetic field sensing element 908 includes a center upon the first major surface 902 a or the second major surface 902 b of the substrate 902, and a center axis 910, a geometric axis, generally parallel to the center axis 926 of the magnet. The center axis 910 of the second magnetic field sensing element 908 is substantially closer to the third major surface 922 c of the magnet 922 than to the center axis 926 of the magnet 922.

In one particular embodiment as shown, the center axes 904, 910 of the first and second magnetic field sensing elements 904, 908 are at or beyond the width of the magnet 922, the width of the magnet 922 defined by the dimension line 924. In these embodiments, distances between the center axis 926 of the magnet 922 and the center axes 904, 910 of the first and second magnetic field sensing elements 904, 908 are greater than or equal to a distance from the center axis 926 of the magnet 922 to respective ones of the third or fourth surfaces 922 c, 922 d of the magnet 922.

However, in other embodiments, the center axes 904, 910 of the first and second magnetic field sensing elements 904, 908 are within the width of the magnet 922 but still such that the center axes 904, 910 of the first and second magnetic field sensing elements 904, 908 are substantially closer to respective surfaces 922 c, 922 d of the magnet 922 than to the center axis 926 of the magnet 922.

The magnetic field sensing elements 904, 908 are shown to be disposed within the substrate 920, which may be indicative of a Hall element. However, the magnetic field sensing elements 904, 908 can be any types of magnetic field sensing element. The selection of a type of magnetic field sensing element is the same as that described above in conjunction with FIG. 3.

The magnetic field sensor 900 can include an electronic circuit 920 disposed on or within the substrate 902. The electronic circuit 920 can be of a type described below in conjunction with FIG. 5 and can provide a summation of signals generated by the two magnetic field sensing elements 904, 908.

It is shown that the center axis 902 e of the substrate 902 is slightly offset from the center axis 926 of the magnet 922. This offset is shown merely for clarity, and, in some embodiments, the center axis 902 e of the substrate 902 is aligned with the center axis 926 of the magnet 922. However, embodiments for which the center axes 902 e, 926 do not align are also possible.

In some embodiments, as shown, the center axis 926 of the magnet 922 and the center axis 902 e of the substrate 902 do not intersect a gear 930. Also as shown, the axis 928 intersects the gear 930 and a center of rotation 940. However, in other embodiments, the axis 928 can intersect the gear 930 but does not intersect the axis of rotation 940.

It will be appreciated that the magnet 922, unlike the conventional magnet 308 of FIG. 2, in some embodiments, can be comprised of a hard ferromagnetic material. In some embodiments, the magnet 922 is rectangular, and in other embodiments, the magnet 922 is cylindrical. The magnet 922 can be the same as or similar to the magnet 368 described above in conjunction with FIG. 3.

In some embodiments, major axes of sensitivity of the first and second magnetic field sensing elements 904, 908 are parallel to the first surface 902 a of the substrate 902 and parallel to the width dimension 912 of the substrate 902. In other embodiments, the major axes of sensitivity of the first and second magnetic field sensing elements 904, 908 are perpendicular to the first surface 902 a of the substrate 902.

Types of magnetic field sensing elements are described above in conjunction with FIG. 3.

As described above, the magnet 922 has a north pole, N, at the fourth surface 922 d and a south pole, S, at the third surface 922 c, a line between which is parallel to the first major surface 902 a of the substrate 902. With this particular arrangement, magnetic field (or flux) lines pass through the surfaces 922 c, 922 d of the magnet 922 in a direction generally perpendicular to the surfaces 922 c, 922 d. When the first magnetic field sensing element 904 is proximate to a valley in the gear 930, the magnetic flux lines pas through the magnetic field sensing elements 904, 908 in directions generally perpendicular to, but, depending on the exact relative positions of the first and second magnetic field sensing elements 904, 908, the magnet 922, and the gear 930, possibly at another angle relative to the surface 902 a of the substrate 902. In operation, the angle of the magnetic field relative to the surface 902 a of the substrate 902, as well as a magnitude of the magnetic field, change at the location of the first magnetic field sensing element 904 as gear teeth and valleys pass by the magnetic field sensor 900 as the gear 930 rotates. However, as the gear 930 rotates, the angle and magnitude of the magnetic field at the location of the second magnetic field sensing element 908 changes less, and may be relatively invariant in some cases, since the second magnetic field sensing element 908 is relatively far from the gear 930 and is therefore less influenced when compared to the first magnetic field sensing element 904.

For embodiments in which the major response axes of the magnetic field sensing elements 904, 908 are perpendicular to the first surface 902 a of the substrate 902, e.g., for planar Hall elements, when the first magnetic field sensing element 904 is proximate to a valley in the gear 930, the magnetic field passing through the first and second magnetic field sensing elements 904, 908 is at a first angle, which is between parallel and perpendicular to the major axes of sensitivity of the first and second magnetic field sensing elements 904, 908, the magnetic field has first magnitudes, and an output signal from the first magnetic field sensing element 904 has a first amplitude (as described above, the output signal from the second magnetic field sensing element 908 is relatively invariant). However, when the first magnetic field sensing element 904 is proximate to a gear tooth, the magnetic field passing through the first magnetic field sensing element 904 is redirected by the gear tooth to be at a second different angle, which is also between parallel and perpendicular to the major response axes of the first and second magnetic field sensing elements 904, 908, and/or to have second different magnitudes, and an output signal from the first magnetic field sensing element 904 has a second different amplitude.

First and second non-limiting examples described above in conjunction with FIG. 3 also apply to the magnetic field sensor 900. The magnetic field sensor 900 forms a tooth detector.

For embodiments in which the major response axes of the magnetic field sensing elements 904, 908 are parallel to the first surface 902 a of the substrate 902, e.g., for GMR magnetoresistance elements, signal polarities may be reversed from those described above.

It will be appreciated that, the direction of the magnetic field passing through the first magnetic field sensing element 904 is opposite from the direction of the magnetic field passing through the second magnetic field sensing element 908. Thus, magnetic field signals generated by the first and second magnetic field sensing elements 904, 908 can be added or summed to achieve a more stable and compensated (i.e., differential-like) arrangement by way of the an electronic circuit described below in conjunction with FIG. 5.

As described above, the second magnetic field signal generated by the second magnetic field sensing element 908 remains relatively unchanged in magnitude and phase as the gear 930 rotates. Thus, it will be appreciated that, with the differential arrangement provided by summing of the signals generated by the first and second magnetic field sensing elements 904, 908, the second magnetic field signal generated by the second magnetic field sensing element 908 operate as a reference signal. For example, as temperature changes, if both of the magnetic fields signals generated by the first and magnetic field sensing elements 904, 908 move upward or downward by the same amount due to temperature, a summation signal generated by summing the first and second magnetic field signals will be substantially unchanged. Essentially, the second magnetic field sensing element 908 provides an automatic compensation (i.e., reduction) of a variety of undesirable effects, for example, changes due to temperature, common mode noise, and common mode pickup of other magnetic fields generated by other magnetic objects in proximity to the magnetic field sensor 900.

Particularly for gear teeth that are wide in the x and y directions 938, the magnetic field sensor 900 can rotate though a number of degrees, for example, through +/−one hundred eighty degrees (i.e., though three hundred sixty degrees), about an axis 928 as represented by an arrow 934. The rotation results in some performance variation, but within acceptable limits. The magnetic field sensor 900 can also rotate though a number of degrees, for example, through +/−twenty degrees, in a direction of an arrow 936, i.e., about a y-axis in an x-z plane of orthogonal axes 938 with minimal performance variation.

Referring now to FIG. 4A, in which like elements of FIG. 4 are shown having like reference designations, a magnetic field sensor 950 is like the magnetic field sensor 900 of FIG. 4, except that a magnet 962 replaces the magnet 922 of FIG. 4.

The magnet 962 has a first major surface 962 a proximate to the substrate 902. The first dimension 924 across the first major surface 962 a of the magnet 962 defines a width of the magnet 962 and a second dimension across the first major surface 962 a of the magnet 962 perpendicular to the first dimension defines a length of the magnet 962. The magnet 962 has a second major surface 962 b distal from the substrate 902 and substantially parallel to the first major surface 962 a of the magnet 962. The magnet 962 has third and fourth opposing surfaces 962 d, 962 c, respectively, at ends of the width 924 of the magnet 962. The magnet 962 has the center axis 926 perpendicular to the first and second major surfaces 962 a, 962 b of the magnet 962 and centered within the width and length of the magnet 962.

Unlike the magnet 922 of FIG. 4, the magnet 962 has a north pole, N, and a south pole, S, a line between which is perpendicular to a first major surface 952 a of the substrate 952. Magnetic field lines and operation of the magnetic field sensor will be understood from the description above in conjunction with FIG. 4.

Referring now to FIG. 4B, in which like elements of FIGS. 4 and 4A are shown having like reference designations, a magnetic field sensor 1000 includes a substrate 1002. The substrate 1002 has a major planar surface 1002 a or 1002 b. The magnetic field sensor 1000 also includes a magnet 1024 the same as or similar to the magnet 922 of FIG. 4.

The magnetic field sensor 100 can include a magnet 1024, which can be the same as or similar to the magnet 922 of FIG. 4. However, in other embodiments, the magnetic field sensor 1000 can include a magnet the same as or similar to the magnet 962 of FIG. 4A.

First and second magnetic field sensing elements 1004, 1008 can be disposed upon or within the first or second surfaces 1002 a, 1002 b, respectively, of the substrate 1002. The magnetic field sensing elements 1004, 1008 are like the magnetic field sensing elements 904, 908 of FIG. 4, but are disposed such that center axes 1006, 1010 of the magnetic field sensing element 1004, 1008 are closer to a center axis 1002 e of the magnet 1024 than to the third or fourth surfaces 1024 d, 1024 c of the magnet 1024. In other words, a dimension 1022 is the same as or smaller than a dimension 1020.

The magnetic field sensor 1000 can include an electronic circuit 1018 disposed on the substrate 1002, which can be like the electronic circuit described below in conjunction with FIG. 5. The magnetic field sensor 1000 can provide a tooth detector.

It is shown that a center axis 1002 e of the substrate 1002 is slightly offset from a center axis 1016 of the magnet 1024. This offset is shown merely for clarity, and, in some embodiments, the center axis 1002 e of the substrate 1002 is aligned with the center axis 1016 of the magnet 1024. However, embodiments for which the center axes 1002 e, 1016 do not align are also possible.

In some embodiments, as shown, neither the center axis 1016 of the magnet 1024 nor the center axis 1002 e of the substrate 1002 intersect the ferromagnetic object, i.e., a gear 1030. However, a line passing through the first and second magnetic field sensing elements 1004, 1008 can intersect the gear 1024 and, in some embodiments, can intersect a center of rotation 1040 of the gear 1024. However, in other embodiments the line between the first and second magnetic field sensing element 1004 and 1008 intersects the gear 1030 but not the center of rotation 1040.

Operation of the magnetic field sensor 1000 will be understood from discussion above in conjunction with FIG. 4. The magnetic field sensor 1000 provides similar characteristics and advantages as the magnetic field sensor 900 of FIG. 4.

Referring now to FIG. 4C, a magnetic field sensor 1050 includes a substrate 1052. The substrate 1052 has a major planar surface 1052 a or 1052 b. The magnetic field sensor 1050 also includes a magnet 1074 disposed proximate to the substrate 1052. The magnetic field sensor 1050 also includes a magnetic field sensing element 1054 disposed upon or within the major planar surface 1052 a or 1052 b of the substrate 1052. The magnetic field sensing elements 1054 is configured to generate a magnetic field signal.

The magnetic field sensor 1050 can include a magnet 1074 the same as or similar to the magnet 922 of FIG. 4, and having a center axis 1066. However, in other embodiments, the magnetic field sensor 1050 can include a magnet the same as or similar to the magnet 962 of FIG. 4A.

The magnetic field sensor 1050 can include an electronic circuit 1068 disposed on the substrate 1052. The electronic circuit can be the same as or similar to the electronic circuit 50 of FIG. 1A. The magnetic field sensor 1050 can provide a tooth detector.

It is shown that a center axis 1052 e of the substrate 1052 is slightly offset from a center axis 1066 of the magnet 1074. This offset is shown merely for clarity, and, in some embodiments, the center axis 1052 e of the substrate 1052 is aligned with the center axis 1066 of the magnet 1074. However, embodiments for which the center axes 1052 e, 1064 do not align are also possible.

In some embodiments, as shown, neither the center axis 1066 of the magnet 1074 nor the center axis 1052 e of the substrate 1052 intersect the ferromagnetic object, i.e., a gear 1080. However, a line passing through the magnetic field sensing element 1054 and parallel to the first surface 1052 a of the substrate 1052 can intersect the gear 1080 and, in some embodiments, can intersect a center of rotation 1090 of the gear 1080.

Operation of the magnetic field sensor 1050 will be understood from discussion above.

Referring now to FIG. 4D, in which like elements of FIG. 4 are shown having like reference designations, a magnetic field sensor 1200 can include the substrate 902 having the magnetic field sensing element 904 and the electronic circuit 920 disposed thereon. The substrate 902 can be coupled to a leadframe, here shown for clarity having only two leads 1204 a, 1204 b. It will be understood that the leadframe has other parts, for example, a base plate (not shown) or die attach areas (not shown), which would be used in a case where the die spans multiple lead. The base plate of the die attach areas may be positioned under the substrate 1202. For a flip chip device, the die attach areas may be lead fingers to connect the die to the leadframe with solder bumps, for example.

The magnetic field sensor 1200 also includes the magnet 922. In some embodiments, the magnetic field sensor 1200 includes an encapsulation 1202 that surrounds the substrate 902 and part of the leadframe 1204 a, 1204 b. In these embodiments the magnet 922 can be coupled to or affixed to the encapsulation 1202 as shown with glue, tape, or the like.

In other embodiments, in addition to or in place of the encapsulation 1202, the magnetic field sensor 1200 can include an encapsulation 1206 that surrounds at least the magnet 922. In some embodiments, the encapsulation 1206 surrounds the magnet 922, the substrate 902, and also part of the leadframe 1204 a, 1204 b, for example, in a single molding step. In another embodiment, the magnet 922 itself is molded with a hard ferromagnetic molding material (described above) and may be dimensioned to be inside of the first encapsulation 1202 or outside the 1202 boundary.

The encapsulations 1202, 1206 can be provided from a variety of materials, including, but not limited to, plastic or mold compound material.

While the leads 1204 a, 1204 b are shown to leave the substrate 902 in a particular direction, in other embodiments, the lead 1204 a, 1204 b can leave the substrate 902 in another direction.

Other characteristics of the packaged magnetic field sensor 1200 can be the same as or similar to characteristics to described above in conjunction with FIG. 3C.

Referring now to FIG. 5, in which like elements of FIG. 1A are shown having like reference designations, an electronic circuit 1250, unlike the electronic circuit 50 of FIG. 1A, includes two input amplifiers 1256, 1258 coupled to receive two differential input signals 1252 a, 1252 b and 1254 a, 1254 b from two magnetic field sensing elements, for example, from the two magnetic field sensing elements 904, 908 of FIGS. 4 and 4A.

The electronic circuit 1250 includes a summing node 1260 coupled to receive output signals 1256 a 1258 a from the amplifiers 1256, 1258. For reasons described above in conjunction with FIG. 4, an output signal 1260 a essentially provides a difference signal even though it is derived from a summation. As described above in conjunction with FIG. 4, the difference signal results because the magnetic field generated by the magnet 922 of FIG. 4 passes through the two magnetic field sensing elements 904, 908 in opposite directions, resulting in signals with opposite polarities.

Referring now to FIG. 6, a graph 1300 has a vertical axis with a scale in units of magnetic field or magnetic flux density in Gauss and horizontal axis with a scale in units of degrees of angular rotation of the gear or target, for example, the gear 370 of FIG. 3. A set of curves 1302 is representative of a magnetic field experienced by a magnetic field sensing element, for example, the magnetic field sensing element 354 of FIG. 3, as the gear 370 rotates. Thus, the magnetic field is lower in a region 1308 when the magnetic field sensor 354, which can be when the magnetic field sensing element 354 is proximate to a gear valley, and higher in regions 1304, 1312, which can be when the magnetic field sensing element 354 is proximate to gear teeth. The opposite can also be true depending upon the type of magnetic field sensing element used.

The set of curves 1302 are taken for the case where the magnetic field sensing element 354 is a planar Hall element having an axis of sensitivity perpendicular to the surfaces 352 a, 352 b of the substrate 352 and for an air gap between the magnetic field sensor 350 and the gear 312 of one millimeter.

The set of curves 1302 is representative of a set of rotation angles of the magnetic field sensor 350 of FIG. 3 about the axis 380 as represented by the arrow 372, i.e., as the magnetic field sensor 350 is twisted about the axis 380. Recall that the magnetic field sensor 350 can use a simple magnet 368 that does not have a core shown in conjunction with the magnet 308 of FIG. 2.

Various ones of the set of curves 1302 are not individually identified. However, taken together, the set of curves 1302 is representative of a rotation of the magnetic field sensor 350 about the axis 380 through three hundred sixty degrees. Thus, it will be appreciated that an output signal generated by the magnetic field sensor 350 is not affected very much by the rotation angle of the magnetic field sensor 350 about the axis 380. This behavior is advantageous because, in some applications of the magnetic field sensor 350 (and magnetic field sensors of FIGS. 3A-3C), the magnetic field sensor 350 is part of an assembly that screws into a hole with an axis aligned with the axis 380. Thus, it is desirable that the rotation angle of the magnetic field sensor 350 about the axis 380 does not need to be carefully controlled for all sensor applications.

In the region 1308 it can be seen that the baseline level is about 1425 Gauss, which is higher than the baseline level (about +/−six hundred Gauss) described above in conjunction with FIG. 2, for which a magnetic field sensor 300 has the magnet 308 with the core 310. As described above, the core 310 results in a particularly low baseline level for a given geometry and magnetic field sensing element placement. However, for the case of the simple magnet 368 of FIG. 3, the change in the level between the regions 1304, 1312 and 1308 are large enough for many applications. Thus, the magnetic field sensor 350 of FIG. 3, to which the set of curves 1302 applies, can still provide good differentiation between a tooth and a valley of the gear 370, and therefore, can provide an accurate output signal, but without using a high cost magnet with a core, and without having the low baseline level achieved by the more expensive magnet.

It can be shown that the good differentiation of the magnetic field sensor 350 is also provided over a range of air gaps between the magnetic field sensor 350 and the gear.

While the graph 1300 is described above in conjunction with the magnetic field sensor 350 of FIG. 3, similar graphs can be generated for other magnetic field sensors described above

As described above in conjunction with FIGS. 1 and 2, some prior art arrangements use a complex and costly magnet having a core material in order to achieve a low baseline level. All embodiments of magnetic field sensors described above can use a simple, lower-cost, magnet without a core. The low cost magnet can take a variety of forms described above in conjunction with FIG. 3, including magnets made of a uniform solid material, and magnets made of impregnated molded materials. However, it should also be appreciated that, in other embodiments, the magnetic field sensors described above could use a magnetic with a core.

All references cited herein are hereby incorporated herein by reference in their entirety.

Having described preferred embodiments, which serve to illustrate various concepts, structures and techniques, which are the subject of this patent, it will now become apparent to those of ordinary skill in the art that other embodiments incorporating these concepts, structures and techniques may be used. Accordingly, it is submitted that that scope of the patent should not be limited to the described embodiments but rather should be limited only by the spirit and scope of the following claims. 

What is claimed is:
 1. A magnetic field sensor for sensing motion of a ferromagnetic object, comprising: a substrate, comprising: a first major surface, wherein a first dimension across the first major surface of the substrate defines a width dimension of the substrate and a second dimension across the first major surface of the substrate perpendicular to the width dimension defines a length dimension of the substrate; first and second substrate edges at ends of the width dimension of the substrate; a second major surface parallel to the first major surface; and a substrate center axis perpendicular to the first and second surfaces of the substrate, wherein the magnetic field sensor further comprises: a magnet, comprising: a first major surface proximate to the substrate and substantially parallel to the first major surface of the substrate, wherein a first dimension across the first major surface of the magnet defines a width dimension of the magnet and a second dimension across the first major surface of the magnet perpendicular to the width dimension defines a length dimension of the magnet; a second major surface distal from the substrate and parallel to the first major surface of the magnet; and a magnet axis perpendicular to the first and second major surfaces of the magnet and centered within the width dimension and length dimension of the magnet, wherein the magnet axis intersects the ferromagnetic object, wherein the magnetic field sensor further comprises: a magnetic field sensing element disposed upon the first major surface or the second major surface of the substrate and configured to generate a first magnetic field signal, wherein the magnetic field sensing element comprises a sensing element center axis perpendicular to the first surface of the substrate and passing through a center of the magnetic field sensing element, wherein the sensing element center axis is parallel to the magnet axis and parallel to the substrate center axis, wherein a first distance between the sensing element center axis and a first end of the width dimension of the magnet is substantially smaller than a second distance between the first end of the width dimension of the magnet and the magnet axis, wherein a location of the magnetic field sensing element relative to the magnet is selected to achieve the magnetic field signal having a value less than a saturation value, wherein the center of the magnetic field sensing element is disposed proximate to a first end of the width dimension of the substrate, wherein there is no magnetic field sensing element disposed with a center proximate to a second different end of the width dimension of the magnet or proximate to a second different end of the width dimension of the substrate, wherein the sensing element center axis intersects a center of rotation of the ferromagnetic object, and wherein the substrate center axis and the magnet axis are offset from the sensing element center axis.
 2. The magnetic field sensor of claim 1, wherein a distance between the magnet axis and the center of the magnetic field sensing element is greater than a distance from the magnet axis and the first end of the width dimension of the magnet.
 3. The magnetic field sensor of claim 1, wherein the center of the magnetic field sensing element is at or beyond the first end of the width dimension of the magnet.
 4. The magnetic field sensor of claim 1, wherein the magnet has a north pole and a south pole, a line between which is parallel to the first major surface of the substrate.
 5. The magnetic field sensor of claim 1, wherein the magnet has a north pole and a south pole, a line between which is perpendicular to the first major surface of the substrate.
 6. The magnetic field sensor of claim 1, wherein the magnetic field sensing element comprises a Hall element.
 7. The magnetic field sensor of claim 1, wherein the magnetic field sensing element comprises a magnetoresistance element.
 8. The magnetic field sensor of claim 1, wherein the substrate center axis intersects the ferromagnetic object.
 9. The magnetic field sensor of claim 1, wherein the magnet comprises a rectangular magnet.
 10. The magnetic field sensor of claim 1, wherein the magnet consists of only one uniform material.
 11. The magnetic field sensor of claim 10, wherein the magnet is comprised of a hard ferromagnetic material, and wherein the magnet does not have a core comprised of a different material.
 12. The magnetic field sensor of claim 1, wherein the magnet is comprised of a hard ferromagnetic material, and wherein the magnet does not have a core comprised of a different material.
 13. The magnetic field sensor of claim 1, wherein the magnet comprises magnetic particles molded within a mold compound.
 14. The magnetic field sensor of claim 1, further comprising: a leadframe over which the substrate is disposed, the leadframe comprising a plurality of leads; a molded body encapsulating the substrate and selected parts of the leadframe; and one or more passive electronic components disposed within the molded body and electrically coupled to at least two of the plurality of leads.
 15. The magnetic field sensor of claim 1, wherein the magnetic field sensing element comprises a first type of magnetic field sensing element and a second different type of magnetic field sensing element proximate to the first type of magnetic field sensing element.
 16. The magnetic field sensor of claim 1, wherein the magnetic field sensing element comprises a first magnetic field sensing element of a first type, and a second magnetic field sensing element of the first type, the second magnetic field sensing element proximate to the first magnetic field sensing element.
 17. The magnetic field sensor of claim 1, further comprising an amplifier to receive and amplify a differential signal from the magnetic field sensing element.
 18. The magnetic field sensor of claim 1, wherein the substrate center axis and the magnet axis do not intersect the center of rotation of the ferromagnetic object. 